feat: add you.com search provider#7
Open
mouse-value-add wants to merge 1 commit intopaperfoot:masterfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi maintainers, thanks for building and maintaining
search-cli.I’m proposing a small provider addition that seems aligned with the project’s goal of giving agents one unified search interface across multiple backends.
Why this repo / why this change
search-cliis already structured around a clean provider abstraction, and web/news search is core to agent intelligence workflows. Adding You.com gives users one more optional provider with a useful free-tier path (up to 100 searches/day without a key), while keeping the existing routing model intact.What changed
src/providers/you.rsGET https://api.you.com/v1/agents/search)src/providers/mod.rsyouto mode routing insrc/engine.rsfor:generalnewssrc/config.rsandconfig.example.tomlkeys.youSEARCH_KEYS_YOUYDC_API_KEY,YOU_API_KEYsrc/cli.rs,src/main.rs,src/types.rs)tests/integration.rs)Setup / usage
Any of the following works:
search config set keys.you <YOUR_KEY>export SEARCH_KEYS_YOU=<YOUR_KEY>export YDC_API_KEY=<YOUR_KEY>(alias)export YOU_API_KEY=<YOUR_KEY>(alias)The provider is then available via:
-p you)Backward compatibility / risk
Validation done
cargois unavailable on the runner (cargo: command not found).If you prefer a narrower initial rollout (for example, include
youonly when explicitly selected with-p youbefore adding it to default general/news routing), I’m happy to adjust.